grades = input().split()
grades = list(map(float, grades))
average = sum(grades) / len(grades)

print(f'{sum(grades):.2f} {average:.2f}')
